package com.cgnpc.scp.run.mybatis.mapper.client;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cgnpc.scp.common.mybatis.entity.ScpCommonFileUpload;
import com.cgnpc.scp.run.mybatis.entity.ProjectInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ProjectInfoMapper extends BaseMapper<ProjectInfo> {

    void updateProjectStage(@Param("id") String id);

    void offerNumber(@Param("params") Map<String, Object> params);

    void clearOfferNumber(@Param("params") Map<String, Object> params);

    List<String> getStageIdByProjectId(@Param("stageTableName") String stageTableNamed, @Param("projectId") String projectId);

    List<Map<String, Object>> getStageMapByProjectId(@Param("stageTableName") String stageTableNamed, @Param("projectId") String projectId);

    List<ProjectInfo> listPage(@Param("params") Map<String, Object> params);

    List<ProjectInfo> listPageExport(Map<String, Object> params);

    List<ScpCommonFileUpload> getFileNameMapByFileId(@Param("fileIds")List<String> fileIds);
}